package Bean;


import com.alibaba.fastjson.JSONObject;

import java.text.SimpleDateFormat;

public class BeanOrderDetail {
	int detail_id;
	int order_id;
	int student_id;
	int class_id;
	float detail_price;
	boolean isFormal;
	int times;
	private BeanStudent student;
	private BeanClass aClass;

	public boolean isFormal() {
		return isFormal;
	}

	public void setFormal(boolean formal) {
		isFormal = formal;
	}

	public int getTimes() {
		return times;
	}

	public void setTimes(int times) {
		this.times = times;
	}

	public int getStudent_id() {
		return student_id;
	}

	public void setStudent_id(int student_id) {
		this.student_id = student_id;
	}

	public int getClass_id() {
		return class_id;
	}

	public void setClass_id(int class_id) {
		this.class_id = class_id;
	}

	public BeanStudent getStudent() {
		return student;
	}

	public void setStudent(BeanStudent student) {
		this.student = student;
	}

	public BeanClass getaClass() {
		return aClass;
	}

	public void setaClass(BeanClass aClass) {
		this.aClass = aClass;
	}

	public int getDetail_id() {
		return detail_id;
	}
	public void setDetail_id(int detail_id) {
		this.detail_id = detail_id;
	}
	public int getOrder_id() {
		return order_id;
	}
	public void setOrder_id(int order_id) {
		this.order_id = order_id;
	}
	public float getDetail_price() {
		return detail_price;
	}
	public void setDetail_price(float detail_price) {
		this.detail_price = detail_price;
	}
	public JSONObject toJson() {
		JSONObject j=new JSONObject();
		j.put("detail_id", detail_id);
		j.put("detail_price", detail_price);
		j.put("student", student);
		j.put("aclass", aClass);
		return j;
	}
	
}
